Ext.define('Usws.controller.VideoAttendee', {
    extend: 'Ext.app.Controller',
    stores:['VideoAttendee'],
    
    refs: [
   		   {
               ref: 'contentPanel',
               selector: 'contentPanel'
           }
    ],

    init: function() {
        this.control({
            'VideoAttendee-Grid': {
                add: this.loadVideoAttendee
            }
        });
    },
    
    loadVideoAttendee:function(obj, component, index, eOpts){
    	var videoAttendeeStore = this.getVideoAttendeeStore();
    	videoAttendeeStore.on('beforeload', function (store, options) {
          var new_params = { name: 'fengyong'/* Ext.get('search').getValue()*/ };
          Ext.apply(store.proxy.extraParams, new_params);
        });
    	videoAttendeeStore.load();
    }
});